package cn.wolfcode.luowowo.controller;

import cn.wolfcode.luowowo.util.UploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class UploadController {

    //封面上传操作
    @PostMapping("/coverImageUpload")
    public Object coverImageUpload(MultipartFile pic) throws Exception {
        return UploadUtil.uploadAli(pic);
    }
}
